package com.spboot.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jntoo.db.DB;
import java.io.Serializable;
import java.util.*;

@TableName("paipian")
public class Paipian implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer dianyingxinxiid;

    private String dianyingbianhao;

    private String dianyingmingcheng;

    private Integer fenlei;

    private String dianyingleixing;

    private Double yingpiaojiage;

    private String bofangyingyuan;

    private Integer bofangting;

    private String kaichangshijian;

    private String sanchangshijian;

    private Integer piaoshu;

    private String paipianren;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getGoupiaoCount() {
        return DB.name("goupiao").where("paipianid", id).count();
    }

    public Integer getDianyingxinxiid() {
        return dianyingxinxiid;
    }

    public void setDianyingxinxiid(Integer dianyingxinxiid) {
        this.dianyingxinxiid = dianyingxinxiid == null ? 0 : dianyingxinxiid;
    }

    public String getDianyingbianhao() {
        return dianyingbianhao;
    }

    public void setDianyingbianhao(String dianyingbianhao) {
        this.dianyingbianhao = dianyingbianhao == null ? "" : dianyingbianhao.trim();
    }

    public String getDianyingmingcheng() {
        return dianyingmingcheng;
    }

    public void setDianyingmingcheng(String dianyingmingcheng) {
        this.dianyingmingcheng = dianyingmingcheng == null ? "" : dianyingmingcheng.trim();
    }

    public Integer getFenlei() {
        return fenlei;
    }

    public void setFenlei(Integer fenlei) {
        this.fenlei = fenlei == null ? 0 : fenlei;
    }

    public String getDianyingleixing() {
        return dianyingleixing;
    }

    public void setDianyingleixing(String dianyingleixing) {
        this.dianyingleixing = dianyingleixing == null ? "" : dianyingleixing.trim();
    }

    public Double getYingpiaojiage() {
        return yingpiaojiage;
    }

    public void setYingpiaojiage(Double yingpiaojiage) {
        this.yingpiaojiage = yingpiaojiage == null ? 0.0f : yingpiaojiage;
    }

    public String getBofangyingyuan() {
        return bofangyingyuan;
    }

    public void setBofangyingyuan(String bofangyingyuan) {
        this.bofangyingyuan = bofangyingyuan == null ? "" : bofangyingyuan.trim();
    }

    public Integer getBofangting() {
        return bofangting;
    }

    public void setBofangting(Integer bofangting) {
        this.bofangting = bofangting == null ? 0 : bofangting;
    }

    public String getKaichangshijian() {
        return kaichangshijian;
    }

    public void setKaichangshijian(String kaichangshijian) {
        this.kaichangshijian = kaichangshijian == null ? "" : kaichangshijian.trim();
    }

    public String getSanchangshijian() {
        return sanchangshijian;
    }

    public void setSanchangshijian(String sanchangshijian) {
        this.sanchangshijian = sanchangshijian == null ? "" : sanchangshijian.trim();
    }

    public Integer getPiaoshu() {
        return piaoshu;
    }

    public void setPiaoshu(Integer piaoshu) {
        this.piaoshu = piaoshu == null ? 0 : piaoshu;
    }

    public String getPaipianren() {
        return paipianren;
    }

    public void setPaipianren(String paipianren) {
        this.paipianren = paipianren == null ? "" : paipianren.trim();
    }
}
